<table class="table">
  <thead>
    <tr>
      <th class="first"><%= sort_link @search, :presentation, "#{t 'helpers.label.propertypattern.presentation'}" %></th>
      <th class="last"></th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th><%= button_to_new "Vytvořit novou šablonu", new_admin_property_pattern_path if permitted_to? :create, :admin_property_patterns %></th>
      <th colspan="2"><%= paginate property_patterns %></th>
    </tr>
  </tfoot>
  <tbody>
    <% unless property_patterns.blank? %>
      <%= render :partial => "property_pattern", :collection => property_patterns %>
    <% else %>
      <tr>
        <th colspan="10">Nebyly nalezeny žádné šablony vlastností.</th>
      </tr>
    <% end %>
  </tbody>
</table>